export function downloadBlobFile(
  data,
  filename,
  mimeType = 'application/octet-stream'
) {
  const blob = new Blob([data], { type: mimeType })
  const a = document.createElement('a')
  a.href = URL.createObjectURL(blob)
  a.download = filename
  a.style.display = 'none'
  document.body.appendChild(a)
  a.click()
  a.remove()
  URL.revokeObjectURL(a.href)
}
